public class method1 {
    public static void main(String[] args) {
        //System.out.println(sum(10,20,30));
        int sum1=sum(10,20,30);
                int sum2=sum(20,30,40);
                        int sum3=sum(30,40,50);


        System.out.println(sum1);
        System.out.println(sum2);
        System.out.println(sum3);

    }
        public static int sum(int a,int b,int c){
            int result =a+b+c;
            return result;


    }
}
